<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: elftosb::EvalContext Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classelftosb_1_1_eval_context.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-types">Protected Types</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classelftosb_1_1_eval_context-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">elftosb::EvalContext Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Context for evaluating AST tree and expressions.  
 <a href="classelftosb_1_1_eval_context.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_eval_context_8h_source.html">EvalContext.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for elftosb::EvalContext:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="classelftosb_1_1_eval_context__coll__graph.svg" width="388" height="336"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_eval_context_1_1_source_file_manager.html">SourceFileManager</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abstract interface for a manager of source files.  <a href="classelftosb_1_1_eval_context_1_1_source_file_manager.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structelftosb_1_1_eval_context_1_1variable__info__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_eval_context.html#structelftosb_1_1_eval_context_1_1variable__info__t">variable_info_t</a></td></tr>
<tr class="memdesc:structelftosb_1_1_eval_context_1_1variable__info__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">Information about a variable's value.  <a href="classelftosb_1_1_eval_context.html#structelftosb_1_1_eval_context_1_1variable__info__t">More...</a><br /></td></tr>
<tr class="separator:structelftosb_1_1_eval_context_1_1variable__info__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac96959da6d939b887cf79cf425fc0c44"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac96959da6d939b887cf79cf425fc0c44"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_eval_context.html#ac96959da6d939b887cf79cf425fc0c44">EvalContext</a> ()</td></tr>
<tr class="memdesc:ac96959da6d939b887cf79cf425fc0c44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:ac96959da6d939b887cf79cf425fc0c44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55c89be51b2fb6e2ef43c71094d7350a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a55c89be51b2fb6e2ef43c71094d7350a"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_eval_context.html#a55c89be51b2fb6e2ef43c71094d7350a">~EvalContext</a> ()</td></tr>
<tr class="memdesc:a55c89be51b2fb6e2ef43c71094d7350a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a55c89be51b2fb6e2ef43c71094d7350a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29710d34b42ced1311c889a2d65bd7d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29710d34b42ced1311c889a2d65bd7d4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>dump</b> ()</td></tr>
<tr class="separator:a29710d34b42ced1311c889a2d65bd7d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Source file manager</div></td></tr>
<tr class="memitem:a325acc329d1bfd076013f1f79dfe4bf8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a325acc329d1bfd076013f1f79dfe4bf8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setSourceFileManager</b> (<a class="el" href="classelftosb_1_1_eval_context_1_1_source_file_manager.html">SourceFileManager</a> *manager)</td></tr>
<tr class="separator:a325acc329d1bfd076013f1f79dfe4bf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab31b76a7256dbac3bf8bb661b790da3c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab31b76a7256dbac3bf8bb661b790da3c"></a>
<a class="el" href="classelftosb_1_1_eval_context_1_1_source_file_manager.html">SourceFileManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getSourceFileManager</b> ()</td></tr>
<tr class="separator:ab31b76a7256dbac3bf8bb661b790da3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Variables</div></td></tr>
<tr class="memitem:a9b7eb13ae82d385f50b8507ac4875ff6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b7eb13ae82d385f50b8507ac4875ff6"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isVariableDefined</b> (const std::string &amp;name)</td></tr>
<tr class="separator:a9b7eb13ae82d385f50b8507ac4875ff6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87bdc7136c8a5bafdf35e9c1dffcf1b8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a87bdc7136c8a5bafdf35e9c1dffcf1b8"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>getVariableValue</b> (const std::string &amp;name)</td></tr>
<tr class="separator:a87bdc7136c8a5bafdf35e9c1dffcf1b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae774ef0858b757381ec517a1964c957b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae774ef0858b757381ec517a1964c957b"></a>
int_size_t&#160;</td><td class="memItemRight" valign="bottom"><b>getVariableSize</b> (const std::string &amp;name)</td></tr>
<tr class="separator:ae774ef0858b757381ec517a1964c957b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adea335ea5bcc747869abea7c98f4dfd9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adea335ea5bcc747869abea7c98f4dfd9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setVariable</b> (const std::string &amp;name, uint32_t value, int_size_t size=kWordSize)</td></tr>
<tr class="separator:adea335ea5bcc747869abea7c98f4dfd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Locks</div></td></tr>
<tr class="memitem:a801505ace8254ba654218eab78af0be0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a801505ace8254ba654218eab78af0be0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isVariableLocked</b> (const std::string &amp;name)</td></tr>
<tr class="separator:a801505ace8254ba654218eab78af0be0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fc6f35e7e92884e306354c76ccd23d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7fc6f35e7e92884e306354c76ccd23d3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lockVariable</b> (const std::string &amp;name)</td></tr>
<tr class="separator:a7fc6f35e7e92884e306354c76ccd23d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52e13875dfc9f6e3f7879ad69d9c98ec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a52e13875dfc9f6e3f7879ad69d9c98ec"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>unlockVariable</b> (const std::string &amp;name)</td></tr>
<tr class="separator:a52e13875dfc9f6e3f7879ad69d9c98ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr class="memitem:a68d31fc887ccdb9430c945c1ea6a474e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a68d31fc887ccdb9430c945c1ea6a474e"></a>
typedef std::map&lt; std::string, <a class="el" href="classelftosb_1_1_eval_context.html#structelftosb_1_1_eval_context_1_1variable__info__t">variable_info_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_eval_context.html#a68d31fc887ccdb9430c945c1ea6a474e">variable_map_t</a></td></tr>
<tr class="memdesc:a68d31fc887ccdb9430c945c1ea6a474e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type to maps between the variable name and its info. <br /></td></tr>
<tr class="separator:a68d31fc887ccdb9430c945c1ea6a474e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a9f1840650a0389ba5c685160814f231b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9f1840650a0389ba5c685160814f231b"></a>
<a class="el" href="classelftosb_1_1_eval_context_1_1_source_file_manager.html">SourceFileManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_eval_context.html#a9f1840650a0389ba5c685160814f231b">m_sourcesManager</a></td></tr>
<tr class="memdesc:a9f1840650a0389ba5c685160814f231b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interface to source file manager. <br /></td></tr>
<tr class="separator:a9f1840650a0389ba5c685160814f231b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed94b180801b8b17cb7c4b8aea0322e3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed94b180801b8b17cb7c4b8aea0322e3"></a>
<a class="el" href="classelftosb_1_1_eval_context.html#a68d31fc887ccdb9430c945c1ea6a474e">variable_map_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_eval_context.html#aed94b180801b8b17cb7c4b8aea0322e3">m_variables</a></td></tr>
<tr class="memdesc:aed94b180801b8b17cb7c4b8aea0322e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Map of variables to their final values. <br /></td></tr>
<tr class="separator:aed94b180801b8b17cb7c4b8aea0322e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Context for evaluating AST tree and expressions. </p>
<p>Keeps a map of variable names to integer values. Each integer value has a size attribute in addition to the actual value. Variables can be locked, which simply means that they cannot be assigned a new value.</p>
</div><hr/><h2 class="groupheader">Class Documentation</h2>
<a name="structelftosb_1_1_eval_context_1_1variable__info__t" id="structelftosb_1_1_eval_context_1_1variable__info__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct elftosb::EvalContext::variable_info_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>Information about a variable's value. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Class Members</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="af351d98899bd386abb3dab2a258ea8fd"></a>bool</td>
<td class="fieldname">
m_isLocked</td>
<td class="fielddoc">
Can this variable's value be changed? </td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a8f1495b8ddd636f173966a6cfafd577c"></a>int_size_t</td>
<td class="fieldname">
m_size</td>
<td class="fielddoc">
Number of bytes. </td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a15d91ed91bca7ec1efb09d2dca3d028d"></a>uint32_t</td>
<td class="fieldname">
m_value</td>
<td class="fielddoc">
Variable value. </td></tr>
</table>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_eval_context_8h_source.html">EvalContext.h</a></li>
<li>EvalContext.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>elftosb</b></li><li class="navelem"><a class="el" href="classelftosb_1_1_eval_context.html">EvalContext</a></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:52 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
